package com.woniu.humanresource.dao;


import com.woniu.humanresource.entity.Departure;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartureDao {
    //    添加离职信息
    void insertDeparture(Departure departure);
    //    条件查询离职信息
    List<Departure> selectCondition(
            @Param("departure")Departure departure,
            @Param("pageIndex")int pageIndex
            ,@Param("pageSize")int pageSize);
    //    查询离职信息数量
    int selectConditionCount(@Param("departure")Departure departure);
    //    删除离职信息
    void deleteDeparture(int id);
    //    修改离职信息
    void updateDeparture(Departure departure);
}
